package url;

import java.net.URL;

/**
 * @author Mark
 * @version 1.0
 * @date 2020/5/17 18:36
 * @description URL学习
 */
public class UrlTest {
    public static void main(String[] args) throws Exception {
        URL url = new URL("http://localhost:8080");
        System.out.println(url.getPort());
        System.out.println(url.getHost());
    }
}
